package raj.scr;
import java.awt.GridLayout;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class RegistrationForm extends JFrame{
private JPanel regPanel;
	
private static JTextField tfName;
private static JTextField tfDepartment;
private static JTextField tfStudent_StudentID;
private static JTextField tfCourse_CourseID;

private JLabel lName;
private JLabel lDepartment;
private JLabel lStudent_StudentID;
private JLabel lCourse_CourseID;


	public static JTextField getTfName() {
	return tfName;
}
public static JTextField getTfDepartment() {
	return tfDepartment;
}
public static JTextField getTfStudent_StudentID() {
	return tfStudent_StudentID;
}
public static JTextField getTfCourse_CourseID() {
	return tfCourse_CourseID;
}
	public JPanel getRegPanel() {
	return regPanel;
}
public void setRegPanel(JPanel regPanel) {
	this.regPanel = regPanel;
}
	
	 public RegistrationForm(){
		 setTextFields();
		 this.setContentPane(regPanel);
		
	 }
	 
	 public void setTextFields(){
//			
			 regPanel=new JPanel();
		     regPanel.setLayout(new GridLayout(4,2));
		     
			lName=new JLabel("  Name");
			regPanel.add(lName);
			tfName=new JTextField();
		    regPanel.add(tfName);
			
		    lDepartment=new JLabel("  Department");
			regPanel.add(lDepartment);
			tfDepartment=new JTextField();
			regPanel.add(tfDepartment);
			
			lStudent_StudentID=new JLabel("  Stu_StuID");
			regPanel.add(lStudent_StudentID);
			tfStudent_StudentID= new JTextField();
			regPanel.add(tfStudent_StudentID);
			
			lCourse_CourseID=new JLabel("  Cor_CorID");
			regPanel.add(lCourse_CourseID);
			tfCourse_CourseID=new JTextField();
			regPanel.add(tfCourse_CourseID);
		}
}
